﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CardCenter/card2.master" AutoEventWireup="true" CodeFile="PurchaseHistoryQuery.aspx.cs" Inherits="CardCenter_PurchaseHistoryQuery" %>

<asp:Content ID="PurchaseHistoryQuery" ContentPlaceHolderID="head1" Runat="Server">
     <script type="text/javascript" src="../Scripts/jquery-min-lastest.js"></script>
    <script src="../Scripts/jquery-ui-all-min-lastest.js" type="text/javascript"></script>    
    <script type="text/javascript" src="../Scripts/aboutverifycode.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
    <% if (false)
       {%><script src="../Scripts/jquery-vsdoc-lastest.js" type="text/javascript"></script>
    <% }%>
    
    <script type="text/jscript">      
        $(function(){
            var regNum = /[\d+]/ig;
            var regMobileNO = /^(((13[0-9]{1})|18[0-9]{1}|(15[0-9]{1}))+\d{8})$/;
            $("input[id*=ImgBtnQuery]").bind("click", function() { 
                 var $startTime = $("input[id*=txt_StartTime]").val();
                 var $endTime = $("input[id*=txt_EndTime]").val();
                 var $verifyCode = $("input[id*=txtValidateCode]").val();
                 var $mobileNO = $("input[id*=MobileNO]").val();
                    
                  if ($mobileNO == "") {
                        alert("手机号不能为空！");
                        return false;
                  }
                    
                  if ($verifyCode == "") {
                        alert("验证码不能为空！");
                        return false;
                  }
                  
                  if (!regNum.test($verifyCode)) {
                        alert("验证码必须为数字！");
                        $("input[id*=txt_VerifyCode2]").val("");
                        return false;
                  }
                  
                  if (!regMobileNO.test($mobileNO)) {
                        alert("请输入正确的手机号码！");
                        $("input[id*=MobileNO]").val("");
                        return false;
                  }
                    
                  if ($startTime == "") {
                         alert("开始时间不能为空！");
                         return false;
                  }

                  if ($endTime == "") {
                         alert("结束时间不能为空！");
                         return false;
                  }
                
                  return true;
            
            });
              
         });
           
    
       function showDiv(show)   
       {   
           //  document.getElementById('yanzheng').style.display   =   show;     
       }   
       
   </script> 
   
    <style type="text/css">
        .style1
        {
            width: 100%;
            font-weight:bold;
            font-size:14px;
            text-align:center;
            height:45px;
        }
        .style2
        {
            width: 89px;
        }
        .style3
        {
            width: 165px;
        }
        .style7
        {
            width: 216px;
            text-align:center;
        }
        #yanzheng
        {
    	width:729px;
    	height:91px;
        	}
        .style11
        {
            width: 100%;
            height: 45px;
        }
        .style12
        {
            width: 107px;
            height: 45px;
            text-align:center;
            font-weight:bold;
            font-size:14px;
            text-align:center;
        }
        .style13
        {
            width: 26px;
        }
        .style15
        {
            width: 180px;
        }
        .style16
        {
            width: 250px;
        }
         .style17
        {
            width: 100%;
            height: 40px;
            width: 725px;
            height: 41px;
            text-align:center;
            font-weight:bold;
            font-size:14px;
            text-align:center;
        } 

        .btn {
             BORDER-RIGHT: #7b9ebd 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7b9ebd 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 13px;
             FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#cecfde); 
             BORDER-LEFT: #7b9ebd 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7b9ebd 1px solid; height:28px;
        }
        .style18
        {
            width: 109px;
        }
        .style19
        {
            width: 230px;
        }
        .style20
        {
            width: 169px;
            text-align: center;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="r" Runat="Server">
<form id="form1" runat="server">
    <div id="r1"><div id="r11"><a href="OnlinePurchaseCardStep1.aspx">&nbsp;&nbsp;卡务中心</a>&nbsp;&nbsp;>>购卡历史查询</div></div>
    <div style="width:729px; height:41px;">
    <div style="width:20px; height:41px; float:left;"></div>
    <div style="width:32px; height:41px; float:left;">
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/CardCenterImg/cai1.jpg" /></div>
    <div style="width:150px; height:41px; float:left;text-align:center; font-size:12px; font-weight:bold; line-height:31px;">
        <asp:Label ID="bu1" runat="server" Text="输入手机号申请验证码" Font-Bold="True" 
            Font-Size="12px" ForeColor="Black"></asp:Label></div>
    <div style="width:32px; height:41px; float:left;">
        <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/CardCenterImg/hui2.jpg" /></div>
    <div style="width:60px; height:41px; float:left;text-align:center; font-size:12px; font-weight:bold; line-height:31px; color:Gray;"><asp:Label ID="bu2" runat="server" Text="查询结果" Font-Bold="True" 
            Font-Size="12px" ForeColor="Gray"></asp:Label></div>
    </div>
    <div style="border-top:16px #fff solid; line-height:16px;"></div>
    <div style="border-bottom:8px #fff solid; border-top:dotted thin #ccc; line-height:8px; width:729px;"></div>
    <table class="style1">
        <tr>
            <td class="style2">
                手机号:</td>
            <td class="style3">
                &nbsp;<asp:TextBox ID="MobileNO" runat="server" BorderColor="Black" 
                    BorderWidth="1px" Height="20px" Width="150px"></asp:TextBox></td>
            <td class="style20">
                <input type='button' id="CommentSubmit" class="btn" value='获取手机验证码' onclick="SendComment(1)"/>
               </td>
            <td>
               &nbsp; 
                （此手机号为购卡时所绑定的手机号）</td>
        </tr>
    </table>
    <div style="font-size:12px; color:Gray;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;短信可能会有延迟，请耐心等候，如果您长时间没有收到短信，请尝试重新获取!</div>
    <div style="border-top:16px #fff solid; line-height:16px;"></div>
    <div style="border-bottom:8px #fff solid; border-top:dotted thin #ccc; line-height:8px; width:729px;"></div>
    <div id="yanzheng">
        <table class="style17">
            <tr>
                <td class="style18">
                    输入验证码:</td>
                <td class="style19">
                    <asp:TextBox ID="txtValidateCode" runat="server" BorderWidth="1px" Width="150px"></asp:TextBox>
                                </td>
                <td>&nbsp;
                    </td>
            </tr>
        </table> 
        <table class="style11">
            <tr>
                <td class="style12">
                    查询时间段:</td>
                <td class="style7" style="font-size:13px; font-weight:bold;">从
                   <asp:TextBox ID="txt_StartTime" runat="server" BorderColor="Black" 
                    BorderWidth="1px" Height="20px" Width="150px"></asp:TextBox></td>
                <td class="style13">
                    </td>
                <td class="style15" style="font-size:13px; font-weight:bold;">到
                   <asp:TextBox ID="txt_EndTime" runat="server" BorderColor="Black" 
                    BorderWidth="1px" Height="20px" Width="150px"></asp:TextBox></td>
                <td>&nbsp;
                    </td>
            </tr>
        </table>
        
        
        
    </div>
    <div style="border-top:16px #fff solid; line-height:16px;"></div>
    <table style="height:40px;">
            <tr>
                <td class="style16" style="text-align:center;">
                    <asp:ImageButton ID="ImgBtnQuery" runat="server" 
                        ImageUrl="~/Images/CardCenterImg/querentijiao.jpg" 
                        onclick="ImgBtnQuery_Click" />
                </td>
                <td>&nbsp;
                    </td>
            </tr>
        </table>
    
   <%-- <div style="width:729px; height:150px; text-align:center;">
    <div style="width:602px; height:150px; background-image:url(../Images/CardCenterImg/chenggong.jpg); text-align:center; font-size:14px; font-weight:bold; line-height:170px; background-repeat:no-repeat;">
        <asp:Label ID="LblSuccess" runat="server" Text="Label"></asp:Label>
        </div>
    </div>
   <div style="width:729px; height:150px; text-align:center;">
        <div style="width:602px; height:150px; background-image:url(../Images/CardCenterImg/shibai.jpg); text-align:center; font-size:14px; font-weight:bold; line-height:170px; background-repeat:no-repeat;">
            <asp:Label ID="LblFail" runat="server" Text="Label"></asp:Label>
        </div>
   </div>--%>
   
       <script type="text/javascript">
        //<![CDATA[
        GetComment(1, 1);
        //]]>
        </script>    
</form>
</asp:Content>
